﻿namespace Fee.Orders.ViewModel
{
    public class OrderViewModel : OrderDetailList
    {
        public OrderViewModel()
        {
        }

        public OrderViewModel(DelegateOrderBase delegateOrder) : base(delegateOrder)
        {
            foreach (var detail in delegateOrder.Details) Details.Add(new DelegateOrderDetailViewModel(detail));
            //  Details = delegateOrder.Details;
            ConstructionTask = new ConstructionTaskViewData(delegateOrder.ConstructionTask);
        }


        public ConstructionTaskViewData ConstructionTask { get; set; }

        //public int Id { get; set; }
    }
}